package com.flow.asyncflow.core.entity.core;

import lombok.AccessLevel;
import lombok.Data;
import lombok.Getter;

/**
 * 节点返回
 */
@Data
public class AsyncFlowResponse {
    /**
     * code 200表示成功 其他标示失败
     */
    private int code;
    /**
     * 消息
     */
    private String msg;

    ///**
    // * 返回参数
    // */
    //@Getter(AccessLevel.PRIVATE)
    //private Object response;


    public AsyncFlowResponse(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public AsyncFlowResponse() {
    }

    //public <T> T getRes() {
    //
    //    T t = null;
    //    if (this.getResponse() != null) {
    //        t = (T) this.getResponse();
    //    }
    //    return t;
    //}
}
